﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="PrintTable.aspx.cs" Inherits="ZhaoPin.Feature.PrintTable" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../Styles/PrintTable.css" rel="stylesheet" type="text/css" />
    <style type="text/css">

    </style>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.PrintArea.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#btnPrint").click(function () {
                $("#PrintArea").printArea();
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style="padding-bottom:8px" align="center"><asp:Button id="btnPrint" 
            runat="server" Text="点此打印报名表" ClientIDMode="Static"/><asp:Label ID="lbInfo" runat="server" CssClass="attention"></asp:Label></div>
    <div id="PrintArea">
    <center>
        <font style="font-size: 18pt; font-family: 黑体">&nbsp;青岛西海岸医疗中心（青岛大学医学院附属医院黄岛分院）<br />
            2011年第一次公开招聘报名表</font>&nbsp;<br />
       
        <asp:FormView ID="FormView1" runat="server" DataKeyNames="Id" DataSourceID="EntityDataSource1">
            <ItemTemplate>
            <div style="padding-left:430px">
            <font style="color: black; font-family: 宋体"><span style="font-size:small">
                报名序号：<asp:Label ID="Label0" runat="server" Text='<%# Eval("Sequence") %>' /></span></font></div>
                <table border="1" cellpadding="0" cellspacing="0" class="reTable" >
  <tr>
    <td class="col1">姓名</td>
    <td class="col2"><asp:Label ID="Label1" runat="server" Text='<%# Eval("RealName") %>' /></td>
    <td class="col3">性别</td>
    <td class="col4"><asp:Label ID="Label2" runat="server" Text='<%# Eval("TDictGender.FName") %>' /></td>
    <td class="col5">出生年月</td>
    <td class="col6"><asp:Label ID="Label3" runat="server" Text='<%# Eval("Birthday","{0:Y}") %>' /></td>
    <td class="col7">民族</td>
    <td class="col8"><asp:Label ID="Label4" runat="server" Text='<%# Eval("TDictNation.FName") %>' /></td>
    <td rowspan="4" class="col9"><asp:Image ID="imagePhoto" runat="server" AlternateText=""
        Style="height:136px;width:100px;" ImageUrl="~/Feature/ShowPhoto.aspx" /></td>
  </tr>
  <tr>
    <td class="col1">政治面貌</td>
    <td class="col2"><asp:Label ID="Label5" runat="server" Text='<%# Eval("TDictParty.FName") %>' /></td>
    <td colspan="2">身份证号码</td>
    <td colspan="4"><asp:Label ID="Label6" runat="server" Text='<%# Eval("IdentityCardNumber") %>' /></td>
  </tr>
  <tr>
    <td class="col1">户籍所在地</td>
    <td colspan="3"><asp:Label ID="Label7" runat="server" Text='<%# Eval("CityNow") %>' /></td>
    <td class="col5">工作年限</td>
    <td class="col6"><asp:Label ID="Label8" runat="server" Text='<%# Eval("WorkedYears") %>' />年</td>
    <td class="col7">身高</td>
    <td class="col8"><asp:Label ID="Label9" runat="server" Text='<%# Eval("Height") %>' />cm</td>
  </tr>
  <asp:ListView ID="lvFirst" runat="server" DataSourceID="dsFirst">
  <ItemTemplate>    
  <tr>
    <td class="col1">第一学历</td>
    <td class="col2"><asp:Label ID="Label19" runat="server" Text='<%# Eval("TDictEduLevel.FName") %>' /></td>
    <td align="center" class="col3">学位</td>
    <td class="col4"><asp:Label ID="Label20" runat="server" Text='<%# Eval("TDictDegree.FName") %>' /></td>
    <td class="col5">毕业时间</td>
    <td class="col6"><asp:Label ID="Label21" runat="server" Text='<%# Eval("EndDate","{0:Y}") %>' /></td>
    <td class="col7">培养方式</td>
    <td class="col8"><asp:Label ID="Label22" runat="server" Text='<%# Eval("TDictEduType.FName") %>' /></td>
  </tr>
  <tr>
    <td class="col1">毕业院校</td>
    <td colspan="3"><asp:Label ID="Label23" runat="server" Text='<%# Eval("University") %>' /></td>
    <td class="col5">所学专业</td>
    <td colspan="2"><asp:Label ID="Label24" runat="server" Text='<%# Eval("Speciality") %>' /></td>
    <td class="col8">学制</td>
    <td class="col9"><asp:Label ID="Label25" runat="server" Text='<%# Eval("TDictEduYear.FName") %>' /></td>
  </tr>
  </ItemTemplate>
  </asp:ListView>
  <asp:ListView ID="lvLast" runat="server" DataSourceID="dsLast">
  <ItemTemplate>
  <tr>
    <td class="col1">最高学历</td>
    <td class="col2"><asp:Label ID="Label19" runat="server" Text='<%# Eval("TDictEduLevel.FName") %>' /></td>
    <td align="center" class="col3">学位</td>
    <td class="col4"><asp:Label ID="Label20" runat="server" Text='<%# Eval("TDictDegree.FName") %>' /></td>
    <td class="col5">毕业时间</td>
    <td class="col6"><asp:Label ID="Label21" runat="server" Text='<%# Eval("EndDate","{0:Y}") %>' /></td>
    <td class="col7">培养方式</td>
    <td class="col8"><asp:Label ID="Label22" runat="server" Text='<%# Eval("TDictEduType.FName") %>' /></td>
    <td class="col9">&nbsp;</td>
  </tr>
  <tr>
    <td class="col1">毕业院校</td>
    <td colspan="3"><asp:Label ID="Label23" runat="server" Text='<%# Eval("University") %>' /></td>
    <td class="col5">所学专业</td>
    <td colspan="2"><asp:Label ID="Label24" runat="server" Text='<%# Eval("Speciality") %>' /></td>
    <td class="col8">学制</td>
    <td class="col9"><asp:Label ID="Label25" runat="server" Text='<%# Eval("TDictEduYear.FName") %>' /></td>
  </tr>
  </ItemTemplate>
  </asp:ListView>
  <tr>
    <td class="col1">联系电话</td>
    <td colspan="3"><asp:Label ID="Label10" runat="server" Text='<%# Eval("PhoneNumber") %>' /></td>
    <td class="col5">研究方向</td>
    <td colspan="2"><asp:Label ID="Label11" runat="server" Text='<%# Eval("StudyDirection") %>' /></td>
    <td class="col8">导师</td>
    <td class="col9"><asp:Label ID="Label12" runat="server" Text='<%# Eval("Tutor") %>' /></td>
  </tr>
  <tr>
    <td class="col1">参加工作时间</td>
    <td colspan="3"><asp:Label ID="Label13" runat="server" Text='<%# Eval("FirstJobDate","{0:Y}") %>' /></td>
    <td class="col5">工作单位</td>
    <td colspan="4"><asp:Label ID="Label14" runat="server" Text='<%# Eval("FirstJobCompany") %>' /></td>
  </tr>
  <tr>
    <td class="col1">考生类别</td>
    <td colspan="3"><asp:Label ID="Label15" runat="server" Text='<%# Eval("TDictStudentCatalog.FName") %>' /></td>
    <td class="col5">职称资格</td>
    <td colspan="4"><asp:Label ID="Label16" runat="server" Text='<%# Eval("TDictProfessionalRank.FName") %>' /></td>
  </tr>
  <tr>
    <td class="col1">岗位等级</td>
    <td colspan="3"><asp:Label ID="Label17" runat="server" Text='<%# Eval("TDictPostGrade.FName") %>' /></td>
    <td class="col5">报考岗位</td>
    <td colspan="4"><asp:Label ID="Label18" runat="server" Text='<%# Eval("TDictPost.FName") %>' /></td>
  </tr>
  <tr>
    <td class="col1" style="height:100px;">学习经历
    </td>
    <td colspan="8" class="colstories"><asp:Label ID="lbES" runat="server"/>&nbsp;</td>
  </tr>
  <tr>
    <td class="col1" style="height:100px;">工作经历</td>
    <td colspan="8" class="colstories"><asp:Label ID="lbWS" runat="server"/>&nbsp;</td>
  </tr>
  <tr>
    <td class="col1" style="height:130px;">家庭成员及主要社会关系</td>
    <td colspan="8" class="colstories"><asp:Label ID="lbHH" runat="server"/>&nbsp;</td>
  </tr>
  <tr>
    <td class="col1">审核人签字</td>
    <td colspan="3">&nbsp;</td>
    <td class="col5">&nbsp;</td>
    <td colspan="4">&nbsp;</td>
  </tr>
</table>
            </ItemTemplate>
        </asp:FormView>
    </center>
    </div>
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=RecruitContainer"
        DefaultContainerName="RecruitContainer" EnableFlattening="False" EntitySetName="People"
        EntityTypeFilter="Person" AutoGenerateWhereClause="True" Include="TDictGender,TDictParty,TDictNation,TDictMarriage,TDictStudentCatalog,TDictPostGrade,TDictPost,TDictProfessionalRank,EduStories"
        Select="" Where="">
        <WhereParameters>
            <asp:SessionParameter DbType="Guid" Name="Id" SessionField="UserId" />
        </WhereParameters>
    </asp:EntityDataSource>
    <asp:EntityDataSource ID="dsFirst" runat="server" ConnectionString="name=RecruitContainer" 
        DefaultContainerName="RecruitContainer" EnableFlattening="False" 
        OrderBy="" Where=""
        Include="TDictEduLevel,TDictDegree,TDictEduType,TDictEduYear" 
        CommandText="select value top (1) e from EduStories as e where e.PersonId=@UserId order by e.StartDate" 
        Select="">
        <CommandParameters>
            <asp:SessionParameter Name="UserId" SessionField="UserId" DbType="Guid" />
        </CommandParameters>
    </asp:EntityDataSource>
    <asp:EntityDataSource ID="dsLast" runat="server" ConnectionString="name=RecruitContainer" 
        DefaultContainerName="RecruitContainer" EnableFlattening="False" 
        OrderBy="" Where=""
        Include="TDictEduLevel,TDictDegree,TDictEduType,TDictEduYear" 
        CommandText="select value top (1) e from EduStories as e where e.PersonId=@UserId order by e.StartDate desc" 
        Select="">
        <CommandParameters>
            <asp:SessionParameter Name="UserId" SessionField="UserId" DbType="Guid" />
        </CommandParameters>
    </asp:EntityDataSource>
</asp:Content>
